package com.example.administrator.basepro.ui.contract;

import com.example.administrator.basepro.base.BasePresenter;
import com.example.administrator.basepro.base.BaseView;
import com.example.administrator.basepro.model.bean.LoginBean;

/**
 * Created by Administrator on 2017/9/1 0001.
 */

public interface LoginContract  {

    interface View extends BaseView{
        void showLoginInfo(LoginBean loginBean);

        void showLoginError(String error);

        void showRegisterInfo(LoginBean loginBean);
    }

    interface Presenter extends BasePresenter<View>{
        void login(String username,String password);
        void register(String username,String password);
    }
}
